class Response < ActiveRecord::Base
  belongs_to :argument
  belongs_to :user
  validates_presence_of :body
  
  
  belongs_to :language, :foreign_key => 'language_id',
                        :class_name => '::Globalize::Language'  
  before_save :set_language 
  def set_language
    if Locale.active && Locale.active.language
      self.language = Locale.active.language
    end
  end
  
end
